Cigar box label inspection


The system inspect the position of the health warning label on the cigar box.

The system is configured as follows:

1) 2 Line Finder Tools (named FindBoxUpperEdge and FindBoxLeftEdge) are used to find upper and left edge of the box.
2) A co-ordinate system is generated from the lines using the tool named ReferenceSystem. This co-ordinate system handles movements and rotation of the cigar box
3) The logic tool named ObjectPresent check that a valid reference system is created and is also used to alarm for no product in image.

                         

4) A template finder named FindRotation is used to find the orientation of the cigar box. A part of the PANTER trademark is used as the template. One template is made for each orientation. If the trade mark is covered by the warning label, the cigar box is assumed to be rotated as well.
5) 2 Line Finder Tools (named FindLabelUpperEdge and FindLabelLeftEdge) are used to find the upper and left edge of the label. To avoid distortion from other lines close to the left edge the tool is configured to find the middle of the black line.
6) A co-ordinate system is generated from the lines using the tool named LabelReferenceSystem. The position of the origin and angle of this co-ordinate system is used in the logic tool named LabelPositionOK to check the correct position.
This Reference systems handle roughly the horizontal movements.
7) The logic tool named LabelPresent check that a valid reference system is created and is also used to alarm for no label on the cigar box.